php forum
php mysql forum
php mysql smarty
 
Topic Options
#226551 - 10/20/02 12:26 PM [6.1.1] ISO and German Date Format
noox Offline
Journeyman

Registered: 04/19/01
Posts: 109
Loc: Austria/Salzburg
Mod Name: ISO and German Date Format 1.0<br />Description: Admins can switch to ISO (YYYY-MM-DD hh:mm) or German (DD.MM.YYYY hh:mm) date format<br />Working under: at least 5.4.1 and 6.1.1 <br />Any pre-requisites: none<br />Author(s): nòóx (Hannes Schmiderer)<br />Credits: Rick, for the code, which made it so easy to add it ;-)<br />Demo: www.dh-rangers.com (currently 5.4.1) and www.nooxnet.com/ubbthreads.php (6.1.1) <br />Files Altered:<br />- theme.inc.php (optionally)<br />- ubbt.inc.php<br />- admin/edittheme.php<br />Database Altered: no<br />New Files: none<br />Any other info:<br />I think this should be included in some further release. The standardized ISO date format is interesting for multilingual boards. And there are some German boards where the other date formats do not really fit.<br /><br />theme.inc.php (end of file)<pre><font class="small">code:</font><hr><br /><br />// Which Time format to use<br />// short1 = 'MM/DD/YY 10:19 AM';<br />// short2 = 'DD/MM/YY 10:19 AM';<br />// short3 = 'YY/MM/DD 10:19 AM';<br />// short4 = 'YYYY/MM/DD 22:43';<br />// german = 'DD.MM.YYYY 22:43';<br />// iso = 'YYYY-MM-DD 22:43';</pre><hr><br /><br />ubbt.inc.php (function convert_time)<pre><font class="small">code:</font><hr><br />look for:<br /> function convert_time($time="",$offset="") {<br />add:<br /> elseif ($theme['timeformat'] == "iso") {<br /> $time = date("Y-m-d H:i", $time);<br /> }<br /> elseif ($theme['timeformat'] == "german") {<br /> $time = date("d.m.Y H:i", $time);<br /> }</pre><hr><br /><br />admin/edittheme.php<pre><font class="small">code:</font><hr><br />look for:<br /> if ($theme[timeformat] == "long")<br />add:<br /> elseif ($theme[timeformat] == "iso") {<br /> $mod_iso = "SELECTED";<br /> }<br /> elseif ($theme[timeformat] == "german") {<br /> $mod_german = "SELECTED";<br /> }<br /></pre><hr><br /><pre><font class="small">code:</font><hr><br />look for:<br /> <select name=timeformat class=formboxes><br />add:<br /> <option value=\"iso\" $mod_iso>YYYY-MM-DD 22:19<br /> <option value=\"german\" $mod_german>DD.MM.YYYY 22:19</pre><hr><br /><br />
_________________________
nòóx
_____________________
www.dh-rangers.com, www.downhill-board.com

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks